package com.kymatrix.mpo.plus.bpm.server.model.enums.task;

import com.kymatrix.mpo.plus.common.business.common.BaseBusinessEnum;
import lombok.Getter;

/**
 * 流程实例 ProcessInstance 的状态
 */
@Getter
public enum BpmProcessInstanceStatusEnum implements BaseBusinessEnum {

    RUNNING("1", "审批中"),
    APPROVE("2", "审批通过"),
    REJECT("3", "审批不通过"),
    CANCEL("4", "已取消");

    /**
     * 状态
     */
    private final String code;
    /**
     * 描述
     */
    private final String name;

    BpmProcessInstanceStatusEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getSysConfigGroupName() {
        return SysConfigGroupName.BPM_PROCESS_INSTANCE_STATUS;
    }


}
